let ZhuojiGameConstant = require("../constant/zhuojiGameConstant");

class CardUtil{
    static genCard(color, value) {
        return color | value;
    }

    static getColor(card){
        return card & 0x70;
    }

    static toHexString(cards) {
        let s = ``;
        for (let card of cards) {
            s += `0x` + card.toString(16) + ` `;
        }
        return s;
    }
}

module.exports = CardUtil;